package com.softhis.rekrutacja.shared.beans;

import java.io.Serializable;

import com.softhis.rekrutacja.shared.dto.UserDTO;

/**
 * Simple bean used to retrieve information about logged user and his session ID during login.
 * 
 * @author Sasak
 */
public class LoginBean implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -4032838489842107799L;
	private String sessionId;
    private UserDTO loggedUser;

    public LoginBean(String sessionId, UserDTO loggedUser) {
        this.sessionId = sessionId;
        this.loggedUser = loggedUser;
    }

    public LoginBean() {
    }

    public UserDTO getLoggedUser() {
        return loggedUser;
    }

    public void setLoggedUser(UserDTO loggedUser) {
        this.loggedUser = loggedUser;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }    
}